<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>更新信息</title>
</head>
<body>
<!-- 提示错误 ${括号里是错误信息的名称}-->
<h1 th:text="${msg}"></h1>
	<form th:action="@{/student/update}" method="post">
	<fieldset>
		<input type="hidden" name="id" th:value="${student.id}" />
		学生姓名：<input type="text" name="name" th:value="${student.name}" /> <br/>
		学生学号：<input type="number" name="number" th:value="${student.number}" /> <br/>
		性别:   <select name="sex"> 
		<option value="1" th:selected="${sex=='1'}">男</option>
		<option value="0" th:selected="${sex=='0'}">女</option>
<!-- 		thymeleaf模板自己的关与value内容的属性写法 -->
		</select>
		<br/>
	</fieldset>
<!-- 	fielset标签，给内容加个边框 -->
	<input type="submit" value="保存" />
	</form>
</body>
</html>